package com.graduate.nixingpotterty.service;

import com.graduate.nixingpotterty.entity.Users;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ZhengHao
 * @since 2025-01-12
 */
public interface IUsersService extends IService<Users> {
    // 自定义业务逻辑方法声明
    boolean customAddUser(Users user);
    boolean customDeleteUserById(Long userId);
    boolean customUpdateUser(Users user);
    Users customGetUserById(Long userId);
    List<Users> customListUsers();

    boolean registerUser(@RequestBody Users user);

    boolean loginUser(String username, String password);
}
